﻿using System;
using System.Linq;
using System.Windows.Controls;
using System.Text.RegularExpressions;

namespace Kaesoft.Hospedaje.Admin
{
    public partial class AdministracionPerfilView : UserControl
    {

        public AdministracionPerfilView()
        {
            InitializeComponent();
        }
        private void textBox1_ValueChanging(object sender, Telerik.Windows.Controls.RadMaskedTextBoxValueChangingEventArgs e)
        {
            string newValue = e.NewMaskedText;
            
            Regex pattern = new Regex(@"^[\w]{0,}$");
            e.Handled = !pattern.IsMatch(newValue);
        }
        
    }
}
